import * as TYPES from '../action-types';

let initial = {
    num:0
}
function reducer(state = initial,action){
    state = {...state}
    let { payload = 1 } = action;
    switch(action.type){
        case TYPES.DEMO :
            state.num += payload
            break;
        default:
    }
    return state
}
export default reducer